/*
 * @Author: your name
 * @Date: 2021-09-25 10:54:34
 * @LastEditTime: 2021-10-17 20:17:28
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-PC-learn\src\api\block.js
 */
import request from '@/utils/request'

/**
 * 
 * 实际使用，直接传入el-input构成的el-table表单就会直接变成post请求
 */

export function submitHashForm(data) {
  return request({
    url: '/addCrop', // 记得留 /,配合base_api
    method: 'post',
    data //就是post参数带的data
  })
}


export function getChannelBlockInfoByTXID(txid) {
  return request({
    url: '/getBlockInfoByTXID?txid='+txid, // 记得留 /,配合base_api
    method: 'get',
    
  })
}
